package com.demo.dk.aplayer;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.SurfaceView;

import com.aplayer.APlayerAndroid;
import com.dueeeke.videocontroller.StandardVideoController;
import com.dueeeke.videoplayer.player.VideoView;

public class MainActivity extends AppCompatActivity {
    private VideoView videoView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        videoView = findViewById(R.id.videoView);
        StandardVideoController videoController = new StandardVideoController(this);
        videoController.addDefaultControlComponent("测试",false);
        videoView.setVideoController(videoController);
        videoView.setUrl("http://121.239.60.117:2333/media/test.mp4");
        videoView.start();

    }
}
